package com.dish.biz;

import com.dish.bean.MyUsers;
import com.dish.dao.UserDAO;
import com.dish.dao.UserDAOImpl;
import com.dish.utils.DAOFactory;

public class UserService {
	public boolean validateUser(MyUsers user){
		//去DB中查找指定用户名和口令的用户
		UserDAO userdao = (UserDAO) DAOFactory.newInstance("UserDAO");
		return userdao.findUser(user);		
	}
}
